import { http } from '@/uni_modules/uview-plus';

// 修改用户个人信息
export function editUserInfo(data: any) {
	return http.put('/user/editIndividualInfo', data);
}

// 修改用户密码
export function editUserPwd(data: any) {
	return http.put('/user/editPassword', data);
}

// 用户头像上传
export function uploadAvatar(data: any) {
	return http.upload('/user/avatar', {
		name: data.name,
		filePath: data.filePath
	});
}